package edu.hpu.controller;

import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @Author 三分恶
 * @Date 2020/1/11
 * @Description
 */
@RestController
public class HelloController {

    @GetMapping("/hello")
    public String hello(){
        return "Hello,it's safe";
    }

    @GetMapping("/admin/hello")
    public String adminHello(){
        return "Hello,admin is safe";
    }

    @GetMapping("/user/hello")
    public String userHello(){
        return "Hello,user is safe";
    }
}
